<page-header model="navModel"></page-header>

<div class="page-container page-body">
	<div class="signup">
		<h3 class="p-b-1"><!--Reset password-->重置密码</h3>
		<form name="sendResetForm" class="login-form gf-form-group" ng-show="mode === 'send'">
			<div class="gf-form">
					<span class="gf-form-label width-7"><!--User-->用户</span>
					<input type="text" name="username" class="gf-form-input max-width-14" required ng-model='formModel.userOrEmail' placeholder="email 或用户名"><!--email or username-->
			</div>
			<div class="gf-form-button-row">
				<button type="submit" class="btn btn-success" ng-click="sendResetEmail();" ng-disabled="!sendResetForm.$valid">
					<!--Reset Password-->重置密码
				</button>
				<a href="login" class="btn btn-inverse">
					<!--Back-->返回
				</a>

			</div>
		</form>
		<div ng-show="mode === 'email-sent'">
			<!--An email with a reset link as been sent to the email address.-->带有重置链接的 email 已被发送到 email 地址。 <br>
			<!--You should receive it shortly.-->您应该很快就会收到它。
			<div class="p-t-1">
				<a href="login" class="btn btn-success p-t-1">
					<!--Login-->登录
				</a>
			</div>
		</div>
		<form name="resetForm" class="login-form gf-form-group" ng-show="mode === 'reset'">
			<div class="gf-form">
				<span class="gf-form-label width-9"><!--New Password-->新密码</span>
				<input type="password" name="NewPassword" class="gf-form-input max-width-14" required ng-minlength="4" ng-model='formModel.newPassword' placeholder="密码" watch-change="formModel.newPassword = inputValue;"><!--password-->
			</div>
			<div class="gf-form">
				<span class="gf-form-label width-9"><!--Confirm Password-->确认密码</span>
				<input type="password" name="ConfirmPassword" class="gf-form-input max-width-14" required ng-minlength="4" ng-model='formModel.confirmPassword' placeholder="确认密码"><!--confirm password-->
			</div>
			<div class="signup__password-strength">
				<password-strength password="formModel.newPassword"></password-strength>
			</div>
			<div class="gf-form-button-row">
				<button type="submit" class="btn btn-success" ng-click="submitReset();" ng-disabled="!resetForm.$valid">
					<!--Reset Password-->重置密码
				</button>
			</div>
		</form>
	</div>
</div>
